package com.youku.data
{
   import com.youku.interfaces.IRootGetData;
   import com.youku.interfaces.IRootData;
   import com.youku.PlayerConfig;
   
   public class RootGetData extends Object implements IRootGetData
   {
      
      public function RootGetData() {
         super();
      }
      
      protected function get rootData() : IRootData {
         return PlayerConfig.rootData;
      }
      
      public function get rootWinType() : String {
         if(this.rootData)
         {
            return this.rootData.winType;
         }
         return "";
      }
      
      public function get rootShowTHX() : Boolean {
         if(this.rootData)
         {
            return this.rootData.showTHX;
         }
         return false;
      }
      
      public function get rootTHX() : String {
         if(this.rootData)
         {
            return this.rootData.THX;
         }
         return "off";
      }
      
      public function get rootLight() : String {
         if(this.rootData)
         {
            return this.rootData.light;
         }
         return "on";
      }
      
      public function get rootShowSideBar() : Boolean {
         if(this.rootData)
         {
            return this.rootData.showSideBar;
         }
         return false;
      }
      
      public function get rootShowSearch() : Boolean {
         if(this.rootData)
         {
            return this.rootData.showSearch;
         }
         return false;
      }
      
      public function get rootFolderID() : String {
         if(this.rootData)
         {
            return this.rootData.fid;
         }
         return null;
      }
      
      public function get rootOb() : String {
         if(this.rootData)
         {
            return this.rootData.ob;
         }
         return null;
      }
      
      public function get rootIsMute() : Boolean {
         if(this.rootData)
         {
            return this.rootData.isMute;
         }
         return false;
      }
      
      public function get rootBaseURL() : String {
         if(this.rootData)
         {
            return this.rootData.baseURL;
         }
         return "";
      }
      
      public function get rootVideoIdEncode() : String {
         if(this.rootData)
         {
            return this.rootData.videoId;
         }
         return null;
      }
      
      public function get rootTrialJS() : Boolean {
         if(this.rootData)
         {
            return this.rootData.trialJS;
         }
         return false;
      }
      
      public function get rootAutoHide() : int {
         if(this.rootData)
         {
            return this.rootData.autoHide;
         }
         return 0;
      }
      
      public function get rootImglogo() : String {
         if(this.rootData)
         {
            return this.rootData.imglogo;
         }
         return null;
      }
      
      public function get rootShowLoop() : Boolean {
         if(this.rootData)
         {
            return this.rootData.showLoop;
         }
         return false;
      }
      
      public function get rootPvid() : String {
         if(this.rootData)
         {
            return this.rootData.pvid;
         }
         return null;
      }
      
      public function get rootUnCookie() : String {
         if(this.rootData)
         {
            return this.rootData.unCookie;
         }
         return null;
      }
      
      public function get rootFrame() : String {
         if(this.rootData)
         {
            return this.rootData.frame;
         }
         return null;
      }
      
      public function get rootAdext() : String {
         if(this.rootData)
         {
            return this.rootData.adext;
         }
         return "";
      }
      
      public function get rootIsUseStageVideo() : Boolean {
         if(this.rootData)
         {
            return this.rootData.isUseStageVideo;
         }
         return false;
      }
   }
}
